/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfy.idcp.modules.crawl.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.lczyfy.idcp.common.persistence.DataEntity;

/**
 * 日志记录Entity
 * @author cw
 * @version 2018-07-20
 */
public class CrawlLog extends DataEntity<CrawlLog> {
	
	private static final long serialVersionUID = 1L;
	private String webName;		// web_name
	private String endUrl;		// end_url
	private String count;		// count
	private String ownId;		// own_id
	private Date endDate;		// end_date
	private String descinfo;		// descinfo
	
	public CrawlLog() {
		super();
	}

	public CrawlLog(String id){
		super(id);
	}

	@Length(min=0, max=128, message="web_name长度必须介于 0 和 128 之间")
	public String getWebName() {
		return webName;
	}

	public void setWebName(String webName) {
		this.webName = webName;
	}
	
	@Length(min=0, max=256, message="end_url长度必须介于 0 和 256 之间")
	public String getEndUrl() {
		return endUrl;
	}

	public void setEndUrl(String endUrl) {
		this.endUrl = endUrl;
	}
	
	@Length(min=0, max=16, message="count长度必须介于 0 和 16 之间")
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}
	
	@Length(min=0, max=64, message="own_id长度必须介于 0 和 64 之间")
	public String getOwnId() {
		return ownId;
	}

	public void setOwnId(String ownId) {
		this.ownId = ownId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=256, message="descinfo长度必须介于 0 和 256 之间")
	public String getDescinfo() {
		return descinfo;
	}

	public void setDescinfo(String descinfo) {
		this.descinfo = descinfo;
	}
	
}